package com.yanqu.road.server.cmd.beautyescort;

import com.yanqu.road.pb.beautyescort.BeautyEscortProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_BEAUTY_ESCORT_GET_DART_REWARD, desc = "领取走镖奖励")
public class BeautyEscortGetDartRewardCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        BeautyEscortProto.BeautyEscortGetDartRewardReqMsg reqMsg = BeautyEscortProto.BeautyEscortGetDartRewardReqMsg.parseFrom(packet.getBytes());
        player.sendPacket(Protocol.C_BEAUTY_ESCORT_GET_DART_REWARD, reqMsg.toBuilder());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
